package com.fable.sp.core.domain;

import com.fable.sp.core.service.Styleable;
import com.fable.sp.core.util.JSONType;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * .
 *
 * @author stormning on 16/7/30.
 */
@MappedSuperclass
public class StyleEntity extends BaseEntity implements Styleable {

    @Column(name = "style",length = 1500)
    @Type(type = JSONType.TYPE)
    private Style style;

    @Column(name = "custom_css")
    private String customCss;

    public Style getStyle() {
        return style;
    }

    public void setStyle(Style style) {
        this.style = style;
    }

    public String getCustomCss() {
        return customCss;
    }

    public void setCustomCss(String customCss) {
        this.customCss = customCss;
    }
}
